using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class HR_SalaryMap : EntityTypeConfiguration<HR_Salary>
    {
        public HR_SalaryMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            // Table & Column Mappings
            this.ToTable("HR_Salary");
            this.Property(t => t.Effective_date).HasColumnName("Effective_date");
            this.Property(t => t.Basic_salary).HasColumnName("Basic_salary");
            this.Property(t => t.Housing).HasColumnName("Housing");
            this.Property(t => t.Transportation).HasColumnName("Transportation");
            this.Property(t => t.Mobile).HasColumnName("Mobile");
            this.Property(t => t.Addionnal_allawences).HasColumnName("Addionnal_allawences");
            this.Property(t => t.employee_id).HasColumnName("employee_id");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.ID2).HasColumnName("ID2");
        }
    }
}
